package jmu.cze.mapper;

import jmu.cze.pojo.Cabin;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface CabinMapper {
    int deleteByID(int cabinID);

    int insert(Cabin cabin);

    Cabin selectByID(int cabinID);

    @MapKey("cabinID")
    Map<Integer,Cabin> selectAllCabins();

    int update(Cabin cabin);
}